import { ref } from 'vue'

function useCount () {
  const count = ref(0)

  const handleMinus = () => {
    count.value--
  }
  const handleAdd = () => {
    count.value++
  }

  return {
    count,
    handleMinus,
    handleAdd
  }
}

export {
  useCount
}
